package com.zzyl.service;

import java.io.IOException;

public interface WeChatService {

    /**
     * 获取openid
     * @param code  登录凭证
     * @return
     * @throws IOException
     */
    public abstract String getOpenId(String code);

    /**
     * 获取手机号
     * @param detailCode  手机号凭证
     * @return
     * @throws IOException
     */
    public abstract String getPhone(String detailCode);
}
